			<?php echo form_open('admin/admin_disclaimer_ctrl/search_by')?>
													<select name="search_by" id="pub" class="select2_category form-control" data-placeholder="Choose a Category" tabindex="1">
														<option value="">select</option>
														<?php foreach($disclaimer_fileds as $disclaimer_key=>$disclaimer_value):?>
														<?php if($search_by == $disclaimer_key){?>
														<option selected="selected" value="<?php echo $disclaimer_key;?>"><?php echo $disclaimer_value;?></option>
														<?php }else{?>
														<option value="<?php echo $disclaimer_key;?>"><?php echo $disclaimer_value;?></option>
														<?php }endforeach;?>
													</select><?php echo form_error('search_by');?>
													<input type="text" value="<?php if($search_by !== 'status'):echo $search_by_value; else: echo ''; endif; ?>" name="search" id="article_search" class="form-control" placeholder="search"/>
													<select name="search1" id="article_status" class="select2_category form-control" data-placeholder="Choose a Category" tabindex="1">
														<option value="">select</option>
													<?php foreach($status as $status_k=>$status_v):?>
													<?php if($search_by == 'status' && $search_by_value == $status_k):?>
														<option selected="selected" value="<?php echo $status_k;?>"><?php echo $status_v;?></option>
													<?php else: ?>
														<option value="<?php echo $status_k;?>"><?php echo $status_v;?></option>
													<?php endif; endforeach;?>
													</select><?php echo form_error('search_by');?>
												<input type="submit" name="dis_sub" class="btn blue" value="Search"/>
												<?php echo form_close();?>
						</div>
					</div>
				</div>
				<!-- END PAGE HEADER-->
				<!-- BEGIN PAGE CONTENT-->
				<div class="row">
					<div class="col-md-12">
						<!-- BEGIN EXAMPLE TABLE PORTLET-->
						<div class="portlet box blue">
							<div class="portlet-title">
								<div class="caption">
									<i class="fa fa-edit"></i>Disclaimer Table
								</div>
								<div class="tools">
									<a href="javascript:;" class="collapse">
									</a>
									<a href="#portlet-config" data-toggle="modal" class="config">
									</a>
									<a href="javascript:;" class="reload">
									</a>
									<a href="javascript:;" class="remove">
									</a>
								</div>
							</div>
							<div class="portlet-body">
								<div class="table-toolbar">
									<div class="row">
										<div class="col-md-6">
											<div class="btn-group">
												<a href="<?php echo base_url().'index.php/admin/admin_disclaimer_ctrl/create_disclaimer_page';?>"><button id="sample_editable_1_new" class="btn green">
												Add New <i class="fa fa-plus"></i>
												</button></a>
											</div>
										</div>
									</div>
								</div>
								<?php if($error == 1){
									echo 'No Records Found<br>';
									echo anchor('admin/admin_disclaimer_ctrl/index','Back');
								}else{ ?>
								<table class="table table-striped table-hover table-bordered" id="sample_editable_1">
								<thead>
								<tr>
									<?php foreach($disclaimer_fileds as $disclaimer_key=>$disclaimer_value):?>
									<th>
										 <?php echo anchor('admin/admin_disclaimer_ctrl/index/'.$query_id.'/'.$disclaimer_key.'/'.(($sort_order == 'asc' && $order_by == $disclaimer_key) ? 'desc' : 'asc'),$disclaimer_value);?>
									</th>
									<?php endforeach;?>									
									<th>
										 Edit
									</th>
									<th>
										 Delete
									</th>
								</tr>
								</thead>
								<tbody>
								<?php echo 'Total Records: '.$articles_get_disclaimers->total;?>
								<?php //echo '<pre>'; print_r($articles_get_disclaimers);exit;?>
								<?php foreach($articles_get_disclaimers->info as $value):?>
								<tr>
									<td>
										 <?php echo $value->disclaimer_name?>
									</td>
									<td>
										 <?php if(strlen($value->description) > 50){
											 echo substr($value->description,0,50).'...............';
										 }else{
											 echo $value->description;
										 }?>
									</td>
									<td>
										 <?php if($value->status == 1){?>
										 <i class="fa fa-check"></i>
										 <?php }else{ ?>
										 <i class="fa fa-times"></i>
										  <?php } ?>
									</td>
									<td>
										<a class="edit" href="<?php echo base_url().'index.php/admin/admin_disclaimer_ctrl/edit_disclaimer_page/'.$value->disclaimer_id;?>">
										Edit </a>
									</td>
									<td>
										<a class="delete" href="<?php echo base_url().'index.php/admin/admin_disclaimer_ctrl/delete_disclaimer/'.$value->disclaimer_id.'/'.$value->status;?>">
										<?php if($value->status == 1){?>
										 Delete
										 <?php }else{ ?>
										 Active
										  <?php } ?></a>
									</td>
								</tr>
								<?php endforeach;?>
								
							</table>
							<?php echo $pagination;?>
								<?php } ?>